package com.zhn.evsi.client;


import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Request;
import com.dtflys.forest.annotation.Retry;
import com.dtflys.forest.annotation.Var;
import com.zhn.evsi.domain.dto.evsi.EvsiFitDTO;
import com.zhn.evsi.interceptor.TokenInterceptor;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@BaseRequest(baseURL = "${eveData}${eveDataSns}")
@Retry(maxRetryCount = "3", maxRetryInterval = "1000")
public interface FitCilent {

    // 获取配置
    // https://esi.evetech.net/latest/characters/2119634223/fittings/?datasource=tranquility&token=1%7CCfDJ8MrqJPYQd2lPo1rpmlAzyLXcqYfrB1Kz5jVggEKJNdeN9SVhl9axBPqj9B9kIwGiAO5yNNkAlvkMUDzU2jQ9cnHuu9W9r6fyW20nbKLruHoyjGESNHFj1sX7YOCZMlJEgNnSc%2FElAXA7g4BqhqX2b8agW2HyY9jEKQ9i5scbASp7
    @Request(
            url = "/characters/{characters}/fittings/?datasource=tranquility",
            type = "GET",
            interceptor = TokenInterceptor.class
    )
    List<EvsiFitDTO> fittings(@Var("characters") Integer characters);
}
